package com.acme;

import com.acme.bankapp.domain.bank.Bank;
import com.acme.bankapp.domain.bank.Client;
import com.acme.bankapp.service.bank.BankService;

public class BankApplication {
	private final static String clientName0 = "Jack Will";
	private final static String clientName1 = "Sue Cherton";
	private final static String clientName2 = "Mi Lee";
	private final static String clientName3 = "Carl Black";
	private final static String clientName4 = "Sharon Adel";

	public static void main(String[] args) {
		final int bankSize = 10;
		Bank bank = new Bank(bankSize);
		BankService bankService = new BankService();

		bankService.addClient(bank, new Client(1000, 1000, 2000, clientName0,
				true));
		bankService.addClient(bank, new Client(2000, 2000, 2000, clientName1,
				false));
		bankService.addClient(bank, new Client(3000, 3000, 2000, clientName2,
				true));
		bankService.addClient(bank, new Client(4000, 4000, 2000, clientName3,
				true));
		bankService.addClient(bank, new Client(5000, 5000, 2000, clientName4,
				false));

		bankService.modifyBank(bank.clients[0], 300, true);
		bankService.modifyBank(bank.clients[1], 2100, false);
		bankService.modifyBank(bank.clients[3], 200, false);

		bankService.printBalance(bank);

		bank.clients[1].getClientSalutation();
		
		bankService.printMaximumAmountToWidthdraw(bank.clients[1]);
	}

}
